/*
	File:		TankBot.cpp
	Author:		Ben Feldmann
	Purpose:	Class to manage game TankBot enemies
*/

#include "TankBot.h"
#include "SGD Wrappers/CSGD_TextureManager.h"


TankBot::TankBot() 
{
	SetHealth(600.0f);
	SetDifficulty(10);
	SetX(200);
	SetY(500);
	SetWidth(128);
	SetHeight(128);
	SetTextureID(CSGD_TextureManager::GetInstance()->LoadTexture(_T("Graphics/Dummy Images/tankEnemy.png")));
}

TankBot::~TankBot() 
{	
	if(GetTextureID() != -1 )
	{
		CSGD_TextureManager::GetInstance()->UnloadTexture(GetTextureID());
		SetTextureID(-1);
	}
}

void TankBot::Update(float elapsed) 
{

}

void TankBot::Render() 
{
	if(GetTextureID() != -1)
	{
		CSGD_TextureManager::GetInstance()->Draw(GetTextureID(), int(GetX()), int(GetY()));
	}
}

//bool TankBot::CheckCollision(IEntity* base) 
//{
//	throw "Not yet implemented";
//}

void TankBot::Attack() 
{
	throw "Not yet implemented";
}

void TankBot::SpecialAttack() 
{
	throw "Not yet implemented";
}